package mxp;

import com.google.gson.Gson;

import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;

public class MCodeDefModelTest {
    public static void main(String[] args) throws Exception {
        Path path = Paths.get("/home/maxupeng/8bitcpu/8bitcpu/mcode.json");
        String content = new String(Files.readAllBytes(path), "UTF-8");
        Gson gson = new Gson();
        MCodeDefModel model = gson.fromJson(content, MCodeDefModel.class);
        String json = gson.toJson(model);
        System.out.println(json);
    }
}
